<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%String path = request.getContextPath();%>
<div class="pageContent">
	<div class="pageContent">
	<div class="pageFormContent" layoutH="56">
		<p>
			<label>会员卡方案编码：</label>
			<input value="<s:property value="cardEntityVO.schemeCode" />" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>商户编码：</label>
			<input value="<s:property value="cardEntityVO.merchantCode" />" type="text" size="30" readonly="readonly">
		</p>
		<p>
			<label>会员卡名称：</label>
			<input value="<s:property value="cardEntityVO.cardName" />" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>商户名：</label>
			<input value="<s:property value="cardEntityVO.merchantNamer" />" type="text" size="30" readonly="readonly"/>
		</p>
		<p>
			<label>会员卡级别：</label>
			<input type="text" value="<s:property value="cardEntityVO.cardLevelVO.levelName" />" readonly="readonly"/>
		</p>
		<p>
			<label>有效期开始：</label>
			<input value="<s:date name="cardEntityVO.expiryDateFrom" format="yyyy-MM-dd" />" readonly="readonly" type="text" size="20" />
		</p>
		<p>
			<label>有效期截止：</label>
			<input value="<s:date name="cardEntityVO.expiryDateTo" format="yyyy-MM-dd" />" readonly="readonly" type="text" size="20"/>
		</p>
		<p>
			<label>申请方式：</label>
			<input type="text" value="${cardEntityVO.applyWay==1?'商家自发':(cardEntityVO.applyWay==2?'商家自发+自主申请':'自主申请')}" readonly="readonly"/>
		</p>
		<p>
			<label>基础折扣：</label>
			<input type="text" value="${cardEntityVO.cardAgioVO.name}" readonly="readonly"/>
		</p>
		<p>
			<label>数量限制：</label>
			<input value="<s:property value="cardEntityVO.limitAmount" />" type="text" size="15" readonly="readonly"/>
		</p>
		<p>
			<label>是否推荐：</label>
			<input value="${cardEntityVO.isRecommend==0?'否':'是'}" type="text" size="15" readonly="readonly"/>
		</p>
		<p>
			<label>是否热门：</label>
			<input value="${cardEntityVO.isHot==0?'否':'是'}" type="text" size="15" readonly="readonly"/>
		</p>
		<div class="divider" style="border: 0"></div>
		<dl class="nowrap">
			<dt>折扣描述：</dt>
			<dd>
				<textarea class="textInput" rows="2" cols="80" style="align:left; width: 510px; height: 80px;" readonly="readonly"><s:property value="cardEntityVO.agioInfo"/></textarea>
			</dd>
		</dl>
		<div class="divider" style="border: 0"></div>
		<dl class="nowrap">
			<dt>会员福利：</dt>
			<dd>
				<textarea class="textInput" rows="2" cols="80" style="align:left; width: 510px; height: 80px;" readonly="readonly"><s:property value="cardEntityVO.welfare"/></textarea>
			</dd>
		</dl>
		<div class="divider" style="border: 0"></div>
		<dl class="nowrap">
			<dt>使用须知：</dt>
			<dd>
				<textarea class="textInput" rows="2" cols="80" style="align:left; width: 510px; height: 80px;" readonly="readonly"><s:property value="cardEntityVO.useNotes"/></textarea>
			</dd>
		</dl>
		<label>可选录入项：</label>
		<dl style="width:700px">
			<dt><input type="checkbox" name="fileds" disabled="disabled" value="email" ${fn:contains(cardEntityVO.inputFileds,'email') ? 'checked=checked' : ''}/>会员Email</dt>
			<dt><input type="checkbox" name="fileds" disabled="disabled" value="qq" ${fn:contains(cardEntityVO.inputFileds,'qq') ? 'checked=checked' : ''}/>会员QQ</dt>
			<dt><input type="checkbox" name="fileds" disabled="disabled" value="address" ${fn:contains(cardEntityVO.inputFileds,'address') ? 'checked=checked' : ''}/>会员联系地址</dt>
			<dt><input type="checkbox" name="fileds" disabled="disabled" value="idcard" ${fn:contains(cardEntityVO.inputFileds,'idcard') ? 'checked=checked' : ''}/>会员身份证号</dt>
			<dt><input type="checkbox" name="fileds" disabled="disabled" value="birthday" ${fn:contains(cardEntityVO.inputFileds,'birthday') ? 'checked=checked' : ''}/>会员出生日期</dt>
		</dl>
		<div class="divider"></div>
		<p style="width: 98%;height: auto;">
			<label>未激活图片：</label>
			<div style="float: none;width:auto;padding-left: 150px;width:720px">
			<s:iterator value="cardEntityVO.nonactivatedPic.split(',')" id="picName" status="i">
				<div id="pic_div_old_${i.index}" style="border:1 solid #ccc;margin-top:5px;margin-bottom:5px;padding:5px;">
					<b>图片像素：</b>宽<s:property value="#picName.split('_')[1]"/>高<s:property value="#picName.split('_')[2]"/>
					<b style="margin-left:15px">图片：</b><a href="<%=path%>/jsp/common/preview_image.jsp?folder=card&picNames=${picName}&id=${cardEntityVO.id}" target="dialog" rel="" max="true" title="预览图片" width="800" height="480" style="margin-right: 40px">${picName}</a>
				</div>
			</s:iterator>
			</div>
		</p>
		<div class="divider"></div>
		<p style="width: 98%;height: auto;">
			<label>已激活图片：</label>
			<div style="float: none;width:auto;padding-left: 150px;width:720px">
			<s:iterator value="cardEntityVO.activatedPic.split(',')" id="picName" status="i">
				<div id="pic_div_old_${i.index}" style="border:1 solid #ccc;margin-top:5px;margin-bottom:5px;padding:5px;">
					<b>图片像素：</b>宽<s:property value="#picName.split('_')[1]"/>高<s:property value="#picName.split('_')[2]"/>
					<b style="margin-left:15px">图片：</b><a href="<%=path%>/jsp/common/preview_image.jsp?folder=card&picNames=${picName}&id=${cardEntityVO.id}" target="dialog" rel="" max="true" title="预览图片" width="800" height="480" style="margin-right: 40px">${picName}</a>
				</div>
			</s:iterator>
			</div>
		</p>
		</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
				</li>
			</ul>
		</div>
	</div>
</div>